package com.quanxiaoha.framework.common.exception;


import lombok.Getter;
import lombok.Setter;

/**
 * @Author: jingyan_liu
 * @CreateTime: 2025-06-30
 * @Description: 业务异常
 * @Version: 1.0
 */

@Getter
@Setter
public class BizException extends RuntimeException {
	// 异常码
	private String errorCode;
	// 错误信息
	private String errorMessage;
	
	public BizException(BaseExceptionInterface baseExceptionInterface) {
		this.errorCode = baseExceptionInterface.getErrorCode();
		this.errorMessage = baseExceptionInterface.getErrorMessage();
	}
}
